<%--
  Created by IntelliJ IDEA.
  User: MySunshine
  Date: 2022/10/26
  Time: 16:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<head>
    <title>管理员信息管理</title>
    <link rel="stylesheet" href="../../layui/css/layui.css">
<style>
    body{
        background-color:  #243b55;
        color: wheat;
    }
    h1{
        color: #e4a74c;
        text-align: center;
        padding: 40px;
        position: relative;
        left:5%;
    }
    img{
        width: 80px;
        height: 80px;
        border-radius: 50%;
        position: relative;
        left:40%;
        bottom:20px;
    }
    .b{
        position: relative;
        left:25%;

    }
</style>
</head>
<body>
<div class="layui-row layui-col-md6 layui-col-md-offset3 " >
    <h1>管理员信息管理</h1>
<form class="layui-form" action="/DbaUpdate">

    <div class="layui-form-item">
        <label class="layui-form-label">管理员头像</label>
        <div class="layui-input-block">
            <img src="../../userimg/${dba.img}" alt="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">管理员ID</label>
        <div class="layui-input-block">
            <input type="text" name="did" readonly   placeholder="${dba.did}(不可更改)" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">账号</label>
        <div class="layui-input-block">
            <input type="text" name="num" readonly value="${dba.dnum}" placeholder="${dba.dnum}(不可更改)" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" required  lay-verify="required" placeholder="${dba.name}" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-block">
            <input type="password" name="pwd"   value="${dba.pwd}"  placeholder="如需修改密码请输入" autocomplete="off" class="layui-input">
    </div>
    </div>

        <div class="layui-form-item">
            <label class="layui-form-label">等级</label>
            <div class="layui-input-block">
                <select  name="rank" lay-verify="required" >
                    <option>${dba.rank}</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                </select>
            </div>
        </div>

    <div class="layui-form-item b">
        <div class="layui-input-block">
            <button type="reset" class="layui-btn layui-btn-warm" onclick="window.history.back(-1)">返回</button>
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">提交</button>
            <button type="reset" class="layui-btn layui-btn-danger">重置</button>
        </div>
    </div>
</form>
</div>

<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>

</body>
<script src="../../layui/layui.js"></script>
</html>
